package com.geostar.constructionland.common.entity.logs;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.UUID;

/**
 * 分析日志_历史
 */
@Data
@TableName("jsyd_fxrz_ls")
public class JsydFxrzLs {
    @TableId(value = "fxrzid",type = IdType.ASSIGN_UUID)
    private String fxrzid;
    @TableField(value = "ywid")
    private String ywid;
    @TableField(value = "fxlx")
    private String fxlx;
    @TableField(value = "fxjg")
    private String fxjg;
    @TableField(value = "fxbs")
    private String fxbs;
    @TableField(value = "bz")
    private String bz;
    @TableField(value = "czlx")
    private String czlx;
    @TableField(value = "fxsj")
    private Date fxsj;
    @TableField(value = "czrid")
    private String czrid;
    @TableField(value = "xzqhdm")
    private String xzqhdm;
    @TableField(value = "sjnd")
    private String sjnd;
    @TableField(value = "uniquetaskid")
    private String uniqueTaskId;
    @TableField(value = "error_msg")
    private String errorMsg;
    @TableField(value = "adjust_version")
    private String adjustVersion;
    @TableField(value = "aly_version")
    private String alyVersion;
    @TableField(value = "log_start_time")
    private Date logStartTime;
    @TableField(value = "log_end_time")
    private Date logEndTime;
    @TableField(value = "landcode_version")
    private String landCodeVersion;
    @TableField(value = "fxlx_mapped")
    private String fxlxMapped;
    @TableField("hjdm")
    private String hjdm;
    @TableField(value = "lcdm")
    private String lcdm;
    @TableField("mongoId")
    private String mongoId;
    public JsydFxrzLs(){}
    public JsydFxrzLs(JsydFxrz j){
        this.adjustVersion = j.getAdjustVersion();
        this.alyVersion = j.getAlyVersion();
        this.bz = j.getBz();
        this.czlx = j.getCzlx();
        this.errorMsg = j.getErrorMsg();
        this.czrid = j.getCzrid();
        this.fxbs = j.getFxbs();
        this.fxjg = j.getFxjg();
        this.fxlx = j.getFxlx();
        this.fxlxMapped = j.getFxlxMapped();
        this.fxrzid = UUID.randomUUID().toString().replaceAll("-","");
        this.fxsj = j.getFxsj();
        this.hjdm = j.getHjdm();
        this.lcdm = j.getLcdm();
        this.landCodeVersion = j.getLandCodeVersion();
        this.logEndTime = j.getLogEndTime();
        this.logStartTime = j.getLogStartTime();
        this.sjnd = j.getSjnd();
        this.uniqueTaskId = j.getUniqueTaskId();
        this.xzqhdm = j.getXzqhdm();
        this.ywid = j.getYwid();
        this.mongoId = j.getMongoId();
    }
}
